<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 引入head.jsp页面-->
<%@ include file="../common/head.jsp" %>

<section class="p-0">
    <div class="container-fluid p-0">
        <div class="row">
            <%@ include file="../common/admin-left.jsp" %>
            <div class="col-lg-9 col-md-8 col-sm-12">
                <div style="margin-bottom: 70px;" class="dashboard-wraper">
                    <h4>个人信息</h4>
                    <div class="frm_submit_wrap">
                        <form id="profileForm">
                            <div class="form-row">
                                <div class="form-group col-md-6">
                                    <label>账号</label>
                                    <input type="text" class="form-control" name="userName" value="${user.userName}" disabled>
                                </div>
                                <div class="form-group col-md-6">
                                    <label>姓名</label>
                                    <input type="text" class="form-control" name="userDisplayName" value="${user.userDisplayName}">
                                </div>
                                <div class="form-group col-md-6">
                                    <label>电子邮箱</label>
                                    <input type="email" class="form-control" name="email" value="${user.email}">
                                </div>
                                <div class="form-group col-md-6">
                                    <label>手机号</label>
                                    <input type="text" class="form-control" name="phone" value="${user.phone}">
                                </div>
                                <div class="form-group col-md-6">
                                    <label>身份证号</label>
                                    <input type="text" class="form-control" name="idCard" value="${user.idCard}">
                                </div>
                                <div class="form-group col-md-6">
                                    <label>性别</label>
                                    <select name="sex" class="form-control">
                                        <option value="保密" <c:if test="${user.sex=='保密'}">selected</c:if>>保密</option>
                                        <option value="男" <c:if test="${user.sex=='男'}">selected</c:if>>男</option>
                                        <option value="女" <c:if test="${user.sex=='女'}">selected</c:if>>女</option>
                                    </select>
                                </div>
                                <div class="form-group col-md-6">
                                    <label>职业</label>
                                    <select name="job" class="form-control">
                                        <option value="互联网/计算机/通信" <c:if test="${user.job=='互联网/计算机/通信'}">selected</c:if>>互联网/计算机/通信</option>
                                        <option value="生产/工艺/制造" <c:if test="${user.job=='生产/工艺/制造'}">selected</c:if>>生产/工艺/制造</option>
                                        <option value="医疗/护理/制药" <c:if test="${user.job=='医疗/护理/制药'}">selected</c:if>>医疗/护理/制药</option>
                                        <option value="金融/银行/投资/保险" <c:if test="${user.job=='金融/银行/投资/保险'}">selected</c:if>>金融/银行/投资/保险</option>
                                        <option value="商业/服务业/个体经营" <c:if test="${user.job=='商业/服务业/个体经营'}">selected</c:if>>商业/服务业/个体经营</option>
                                        <option value="文化/广告/传媒" <c:if test="${user.job=='文化/广告/传媒'}">selected</c:if>>文化/广告/传媒</option>
                                        <option value="娱乐/艺术/表演" <c:if test="${user.job=='娱乐/艺术/表演'}">selected</c:if>>娱乐/艺术/表演</option>
                                        <option value="律师/法务" <c:if test="${user.job=='律师/法务'}">selected</c:if>>律师/法务</option>
                                        <option value="教育/培训" <c:if test="${user.job=='教育/培训'}">selected</c:if>>教育/培训</option>
                                        <option value="公务员/行政/事业单位" <c:if test="${user.job=='公务员/行政/事业单位'}">selected</c:if>>公务员/行政/事业单位</option>
                                        <option value="学生" <c:if test="${user.job=='学生'}">selected</c:if>>学生</option>
                                        <option value="其他" <c:if test="${user.job=='其他'}">selected</c:if>>其他</option>
                                    </select>
                                </div>
                                <div class="form-group col-md-6">
                                    <label>爱好</label>
                                    <input type="text" class="form-control" name="hobby" value="${user.hobby}">
                                </div>
                                <div class="form-group col-md-12">
                                    <label>个人说明</label>
                                    <textarea class="form-control" name="userDesc">${user.userDesc}</textarea>
                                </div>
                                <div class="form-group col-md-12">
                                    <button class="btn btn-theme bg-2" type="button" onclick="submitProfile()">保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

            </div>
        </div>
    </div>
</section>
<!-- 引入foot.jsp页面-->
<%@ include file="../common/footer.jsp" %>